package com.itsoku.lesson101;

import com.itsoku.lesson101.utils.Compare;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description
 * @Author fengleifl-hzgs
 * @Date 2025/7/26
 * @since
 */
@Data
public class User {

    @Compare(name = "名称", typeClass = String.class)
    private String name;
    @Compare(name="年龄")
    private int age;
    @Compare(name="编码")
    private int code;
    @Compare(name = "余额", typeClass = BigDecimal.class)
    private BigDecimal balance;

    @Compare(name = "出生日期", typeClass = Date.class)
    private Date birthday;

}
